home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Demos / A.D. Software / OOFILE 1.3b4d6.sit / OOFILE 1.3b4d6 / MacCodeWarriorDemo1.3b4d6 / docs / results / ooftst02.out < prev    next >
Encoding:
Text File  |  1997-04-03  |  2.5 KB  |  113 lines

  1. OOFILE Validation Suite - Test 2
  2. Simple test to store some data and retrieve it
  3. using a relation joining over a field and showing
  4. iterators on related tables and 1-many relations
  5.  
  6.  
  7. table:  Patients
  8. 447 Dent    Andy    3   3   50000   
  9. 304 DENT    Trissa  2   2   99999   
  10. 161 Smith   John    1   1   20000   
  11. 590 Taylor  Ken 4   4   75000   
  12.  
  13.  
  14.  
  15. table:  Visits
  16. 129 1   1   14/10/1994  Measles 
  17. 349 1   1   1/10/1994   Sore Knee   
  18. 569 2   2   23/11/1994  Flu 
  19. 789 3   3   4/10/1994   Flu 
  20.  
  21.  
  22.  
  23. 3   Dent
  24.     4/10/1994   Flu
  25.  
  26. 2   DENT
  27.     23/11/1994  Flu
  28.  
  29. 1   Smith
  30.     14/10/1994  Measles
  31.     1/10/1994   Sore Knee
  32.  
  33. 4   Taylor
  34. no visits
  35.  
  36.  
  37. Now repeating the process using a dbView instead of explicitly
  38. iterating over the related file.
  39. 3   Dent
  40. VisitDate   Reason for Visit    
  41.  
  42. 4/10/1994   Flu 
  43.  
  44.  
  45. 2   DENT
  46. VisitDate   Reason for Visit    
  47.  
  48. 23/11/1994  Flu 
  49.  
  50.  
  51. 1   Smith
  52. VisitDate   Reason for Visit    
  53.  
  54. 14/10/1994  Measles 
  55. 1/10/1994   Sore Knee   
  56.  
  57.  
  58. 4   Taylor
  59. no visits
  60.  
  61. Finding Patient No 3 : 447  Dent    Andy    3   3   50000   
  62.  
  63. Now finding the Flu sufferers: 
  64. 447 Dent    Andy    3   3   50000   
  65. 304 DENT    Trissa  2   2   99999   
  66.  
  67.  
  68. Now dumping the entire database, with patients sorted by Othernames: 
  69.  
  70. table:  Patients
  71. 447 Dent    Andy    3   3   50000   
  72. 161 Smith   John    1   1   20000   
  73. 590 Taylor  Ken 4   4   75000   
  74. 304 DENT    Trissa  2   2   99999   
  75.  
  76.  
  77.  
  78. table:  Visits
  79. 129 1   1   14/10/1994  Measles 
  80. 349 1   1   1/10/1994   Sore Knee   
  81. 569 2   2   23/11/1994  Flu 
  82. 789 3   3   4/10/1994   Flu 
  83.  
  84.  
  85.  
  86. Description of database schema: 
  87. Connection: :ooftst02:
  88. table: Patients contains fields:
  89. field: Last Name     type: fixed-length chars
  90.     index: indexed, allowing dups & ignoring case
  91.     and a maximum length of : 40
  92. field: Other names   type: fixed-length chars
  93.     index: indexed, allowing dups & ignoring case
  94.     and a maximum length of : 80
  95. field: Visits is a 1:N relationship joining across field: PatientNo and propagating deletes to related records
  96. field: PatientNo     type: long integer
  97.     index: indexed, allowing dups & ignoring case
  98. field: Salary    type: long integer
  99.     index: indexed, allowing dups & ignoring case
  100.  
  101. table: Visits contains fields:
  102. field: Patients is a N:1 relationship joining across field: PatientNo
  103. field: PatientNo     type: long integer
  104.     index: indexed, allowing dups & ignoring case
  105. field: VisitDate     type: date
  106.     index: indexed, allowing dups & ignoring case
  107. field: Reason for Visit  type: fixed-length chars
  108.     index: indexed, ignoring case, compress front & padding
  109.     and a maximum length of : 200
  110.  
  111.  
  112. Test Completed
  113.